package com.hadwinling.blog.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.hadwinling.blog.mapper.MycollectionMapper;
import com.hadwinling.blog.entity.Mycollection;
import com.hadwinling.blog.service.MycollectionService;
/**
* @Package com.hadwinling.blog.service.impl
* @author HadwinLing
* @date 2020/8/19 7:47
* @version V1.0
*/
@Service
public class MycollectionServiceImpl implements MycollectionService{

    @Resource
    private MycollectionMapper mycollectionMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return mycollectionMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Mycollection record) {
        return mycollectionMapper.insert(record);
    }

    @Override
    public int insertSelective(Mycollection record) {
        return mycollectionMapper.insertSelective(record);
    }

    @Override
    public Mycollection selectByPrimaryKey(Integer id) {
        return mycollectionMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Mycollection record) {
        return mycollectionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Mycollection record) {
        return mycollectionMapper.updateByPrimaryKey(record);
    }

}
